﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Teacher.Master" AutoEventWireup="true" CodeBehind="TeacherSelTea.aspx.cs" Inherits="WebSystem.TeacherSelTea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;&nbsp; &nbsp;<asp:Label ID="lblTea" runat="server" Text="输入教师编号："></asp:Label>
&nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </p>
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Button ID="btnTea" runat="server" OnClick="btnTea_Click" Text="显示信息" />
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Tno" DataSourceID="SqlDataSource2">
            <Columns>
                <asp:BoundField DataField="Tno" HeaderText="教师编号" ReadOnly="True" SortExpression="Tno" />
                <asp:BoundField DataField="Tname" HeaderText="姓名" SortExpression="Tname" />
                <asp:BoundField DataField="Sex" HeaderText="性别" SortExpression="Sex" />
                <asp:BoundField DataField="Dno" HeaderText="系编号" SortExpression="Dno" />
                <asp:BoundField DataField="dept" HeaderText="系" SortExpression="dept" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014115121ConnectionString %>" SelectCommand="SELECT * FROM [Teacher] WHERE ([Tno] = @Tno)">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBox1" Name="Tno" PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
</asp:Content>


